<#include "/template/blog/header.ftl">
	<div class="banner border-top-bottom">
		<ul class="carousel">
			<@shishuo_headline_list_tag>
				<#list tag_headline_list as headline>
					<li class="item" style="background:#212e41 url('${BASE_PATH}/${headline.picture}') center no-repeat;height:250px;"></li>
					<#break />
				</#list>
			</@shishuo_headline_list_tag>
		</ul>
	</div>
	<br />
	<br />

	<div class="container">
	<br><br>
    
    <div class="line-big">
    	<div class="space xs5 xs1-move">
        	<h3 class="padding-bottom border-bottom icon-caret-right"> 注册会员</h3>
            <br><div id="notes"></div><br>
            <form class="form-x" method="post" action="/user/addUser.json" id="registerForm">
              <div class="form-group">
                <div class="label"><label for="name">账号</label></div>
                <div class="field">
                  <input type="text" class="input" id="name" name="name" size="30" placeholder="您的会员账号" data-validate="required:账号不能为空">
                </div>
              </div>
              <div class="form-group">
                <div class="label"><label for="password">密码</label></div>
                <div class="field">
                  <input type="password" class="input" id="password" name="password" size="30" placeholder="您的登录密码" data-validate="required:密码不能为空">
                </div>
              </div>
              <div class="form-group">
                <div class="label"><label for="password2">重复密码</label></div>
                <div class="field">
                  <input type="password" class="input" id="password2" name="password2" size="30" placeholder="您的登录密码" data-validate="required:密码不能为空,repeat#password:两个密码不一致">
                </div>
              </div>
              <div class="form-button"><button class="button bg-main" id="register"> 立即注册 </button></div>
            </form>
        </div>
        <div class="space xs5 xs1-move text-center user-right">
            <h3>已是会员</h3>
            <br>
            <a href="/user/login.htm" class="text-main">点这里登录</a>，登录网站会员，享会员服务。
            <br><br><br>
        </div>
    </div>

</div>
<script type="text/javascript">
$("#register").click(function(){
	$('#registerForm').ajaxForm({
		dataType : 'json',
		success : function(data) {
			if (data.result) {
				window.location.href="/user/login.htm";
			}else{
				alert("注册失败!");	
			}
		}
	});
});
</script>
	<#include "/template/blog/footer.ftl">